package com.wangshuo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wangshuo.entity.Comment;
import com.wangshuo.entity.CommentItem;
import com.wangshuo.service.CommentService;
import com.wangshuo.mapper.CommentMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13326
* @description 针对表【comment】的数据库操作Service实现
* @createDate 2025-03-07 10:05:51
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment>
    implements CommentService{
@Resource
private CommentMapper commentMapper;
    @Override
    public List<CommentItem> getlist(Integer gid){
    return commentMapper.getlist(gid);
}
@Override
    public IPage<CommentItem> getlist1(IPage<CommentItem> page, String keyword){
        return commentMapper.getlist1(page,keyword);
}
}




